import { RootStatus } from "../RootStatus";

const {ccclass, property} = cc._decorator;

@ccclass
export default class WalkStatus extends RootStatus {

    spinePlayer: sp.Skeleton = null;
    onEnter()
    {
        let spinePlayer1  = this.plyaer_skin.getChildByName("spine-anim")
        spinePlayer1.active = false
        this.spinePlayer = this.plyaer_skin.getChildByName("spine-anim-cs").getComponent(sp.Skeleton);
        this.spinePlayer.node.active = true;
        this.spinePlayer.setAnimation(0,"cs/moves/walk_in",false);
        this.spinePlayer.addAnimation(0,"cs/moves/walk_loop",true);



    }
    onUpdate(dt:number)
    {

    }

    onExit()
    {

    }
}